import javax.servlet.*;
import java.io.IOException;

/**
 * @author five-five
 * @createTime 2022/3/2 10:37
 */
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("before...");
        chain.doFilter(request, response);
        System.out.println("after...");
    }

    @Override
    public void destroy() {

    }
}
